core: Add "prune" builtin
authorColin Walters <walters@verbum.org>
Fri, 24 Feb 2012 15:23:35 +0000 (10:23 -0500)
committerColin Walters <walters@verbum.org>
Fri, 24 Feb 2012 15:23:35 +0000 (10:23 -0500)
commita417ee3fed44c94a35f49c388e7107f766c9ac4e
tree334c82e95239722de3f226c27509b84bd788d1a1
parent4e3621236eabc98e62d5846781882a7a1ffe3993
core: Add "prune" builtin

This should be useful on clients to trim old refs.  For example,
after an upgrade the system could do:

ostree --repo=/ostree/repo prune --depth=2 gnomeos-3.4-i686-runtime

This would remote all objects that aren't in the current build and the
previous one.
Makefile-ostree.am
src/ostree/main.c
src/ostree/ot-builtin-prune.c [new file with mode: 0644]
src/ostree/ot-builtins.h